//
//  CBPerpheralModels.swift
//  TimeBoat
//
//  Created by Jun on 2022/9/6.
//  Copyright © 2022 Time Boat. All rights reserved.
//

import Foundation
import CoreBluetooth

/// 蓝牙信息
@objcMembers class CBPeripheralItem: NSObject {
    /// 名称
    @objc var name: String?
    @objc var peripheral: CBPeripheral?
    @objc var advertisementData: [String: Any]?
    /// 信号强度
    @objc var rssi: Int = 0
    @objc var serviceList: [CBService] = [CBService]()
    @objc var selected: Bool = false
    /// MAC地址
    @objc var macAddress: String?
    
    init(name: String?, peripheral: CBPeripheral?) {
        super.init()
        self.name = name
        self.peripheral = peripheral
    }
    
    override init() {
        super.init()
    }
}
